<template>
  <div class="form-group">
    <div v-if="groupTitle!==''" class="form-group-title">
      {{groupTitle}}
    </div>
    <div class="form-group-content clearfix">
      <slot></slot>
    </div>
  </div>
</template>

<script>
  export default {
    props: {
      groupTitle: {
        type: String,
        default: ''
      }
    },

    data() {
      return {};
    }
  };

</script>

<style lang="scss" scoped>
  .form-group {
    position: relative;
    padding-top: 11px;

    .form-group-title {
      position: absolute;
      top: 0;
      left: 10px;
      background: #ffffff;
      padding: 0 3px;
      font-size: 16px;
    }

    .form-group-content {
      border: 1px solid #cccccc;
      padding: 10px;
      padding-top: 20px;
    }
  }

</style>
